Rule.greaterThan = function( value, param ) 
{
	return ( value >= param );
}

Rule.lessThan = function( value, param ) 
{
    return ( value <= param );
}

Rule.between = function( value, start, end ) 
{
    return ( value >= start && value <= end );
}

Rule.digits = function( value ) 
{
    if( !value ){ 
    	return true;
    }
    
    return /^\d+$/.test(value);
}

Rule.int = function( value )
{
	if( !value ){
		return true;
	}
	return !isNaN( value );
}

Rule.float = function( value )
{
	value = value.replace(',', '.');
	if( !value ){
		return true;
	}
	return !isNaN( value );
}